package dao;

import com.google.inject.ImplementedBy;
import models.*;
import services.*;

import java.util.List;
import java.util.concurrent.CompletionStage;

/**
 * This interface provides a non-blocking API for possibly blocking operations.
 */
@ImplementedBy(DeptInfo_Repository_JPA.class)
public interface DeptInfo_Repository {

    CompletionStage<DeptInfo_T_Entity> getDeptByID (Integer DeptID);
    CompletionStage<List<DeptInfo_T_Entity>> getDeptList ();
    CompletionStage<List<DeptInfo_T_Entity>> getDeptByType (Integer DeptType);
}
